<?php defined('BASEPATH') or exit('No direct script access allowed');

class Plugin_Session extends Plugin
{

	public function set_lang(){
		$lang      = $this->attribute('lang');
		$redirect_to      = $this->attribute('to') ? $this->attribute('to') : base_url();
		redirect($redirect_to);
	}
}
